package com.zc.cloud.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * 配置中心服务启动
 *
 * @projectName: cloud-service
 * @package: com.rayeye.cloud.config
 * @className: ConfigApplication
 * @description: 配置中心服务启动
 *  获取git上的配置信息的访问地址:
 *      /{application}/{profile}/{label}
 *      /{application}-{profile}.yml
 *      /{label}/{application}-{profile}.yml
 *      /{application}-{profile}.properties
 *      /{label}/{application}-{profile}.properties
 * @author: Neil.Zhou
 * @createDate: 2018-11-19 14:18
 * @updateUser: Neil.Zhou
 * @updateDate: 2018-11-19 14:18
 * @updateRemark: The modified content
 * @version: 1.0
 * <p>Copyright: Copyright (c) 2018</p>
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigServer
public class ConfigApplication {
    private static Logger logger = LoggerFactory.getLogger(ConfigApplication.class);
    public static void main(String[] args) {
        logger.trace("========= 配置中心服务启动 ============= ");
        new SpringApplicationBuilder(ConfigApplication.class).bannerMode(Banner.Mode.OFF).run(args);
    }
}
